This code seems sorta magical to me in that you have no way of detecting errors on the apply/eval call - if there is  a {Mod, Fun} defined in the proplist apply to arguments - the value of the call is never taken into consideration - what if it returns 'error' ?