cleanup headmaster
added sanitycheck