update: improved logging