move to dir according to namespace