some hacky code to change namespace of elements on the fly.