change shell scripts to rake tasks