moved error reporting to package, linked it in