allows for nested namespaces based on file path by adding function handl...

...ing to namespace option