moved pre/post compile hooks