initial comparity middleware