document functionality enhancements