eCAP - the code in the middle