removed subprocess call
add log file