adds log for debugging purposes