fixed some issues
now logs sent messages too