added limit option to limit number of processing results