refactor status resource