check status codes on commands