for standalone compile - added document-type var