use region objects in regions middleware