fixed rake task and hook file