improved logging capabilities