improve functionality of rake tasks