using cocoon:/ in document function instead of config-based