support function on 'data' option