fix namespace saving to correct dir