consolidate error types