adding logging ability for relaxation