Pixbi middleware implementation challenge