use 5 max threads by default