added basic managehook support #7