set threads to default as 4 if no threads selected