set directory for swp