remove default log file
add quote function
implement the -d
fix quoting and printing