refactor namespace configuring