converted old style logging