get it to work with namespaces
correctly manage missing keys and missing files