Improved file loading, support for custom file namespaces