update docs with function(args, prevFunc){} api