implemented managehooks