add cwd param for static dir