use threading from the options object not hardcoded