added log retrieving