add hooks on roles fix #41