Update wf.sh

update wf.sh to let it work alone as single script.