added includeref option