adding logging hack'