moved prepfn (which is Cascading specific) into the cascading namespace