change to insert methode and dump method for Log