20140612 zzdever change applyfunction interface