allows for nested namespaces based on file path by adding function handling to namespace option