add express-clinch middleware and some fixes