DOC: basic error handling implemented