edit custom rake tasks to fix errors