added logging when using classloader