removed stats
adding log_exception for nice exception logging