logging done and tested