fixed last bugs and clean log text