added sorted sets and file size limit