fixing imports, renaming Error to Err