change folder according to namespace