minor fixes to serer.js to support route function and access wsk files from
a shared dir