fixes to rake tasks