using global static reference to bind document to a symbol in user namespace is bad idea. It works, but its bad.