add new logging and test it