bugfixes in rake task