document object/method substitutions