added working namespace functionality