add option to set record limits for task