added middle tier rest