prisica middleware