cathcing all errors