cleanup sly, set min threads