remove dedicated logging function

and post actions in realtime