making error log bit more convinient