check_status handler