added thread factory
added RTConfig
improved test
implemented config