Fixes bug in receives greater than two chain-lenght
removes gcc i-func from debug build