refactoring to specify gem versions