added middleware option to akl globus