gl errors removed, xray write/read done