properly handle invalid statuses