tweak logging error implemeted