add run logic to rakefile