added log statements
added radius support