some moer error logging stuff