clean up extern.h