code nesting
nor working, problems in namespaces to fix...
working nested code