refactor status.c to better add status flags