simplify and use version instead