error handling in status change error/switch error