change free_area struct and add debug.h