namespacing and foreign libs support