upgraded logging