base module and rake tasks with hooks