fixed issues with paths not being correctly resolved, added staticDirs