fix setting up of subdirectory