only log when wanted not all the time