make sure directory has the correct name