changed path and added log ouput