better error handling
extra error handler
print error