improved logging a tiny bit