add temp files dir and nbs vol attachment patch