add hds middleware framework