improved logging of active id