tweaks
thread sorting with limits fixed