error handling everywheere
error handling everywheere