added ability to start and stop from rake tasks