make more resiliant to wrong api responses from emp