minor changes; watch pwd also
add pwd check to test; mv view
use deferred to handle async funcs; minor mods