rake task fix and nicer messages