use $local instead of $PWD directly