cleanup at -p -d , use $() instead of backticks