add hooks in a railtie