use dagreader instead of writing the raw data