need rewrite logs