fix config and head file