refactor to use framework in gemfile