some enchancements to pass root and metadata