added Express/Connect middleware