figuring out dom commands