added a debug log