Feature/errors

- central error handler delegate function in loading
- API's call this where appropriate