sending and getting log