allow config from file and options
permit only one thread for non-jruby engines