moved puts code in rake task