cleans up handling invalid model state