upgraded logging structure