move clone into module to avoid conflict with rubocop rake task