fixed logging
added log