start singleAPIThread only when apienabled = true
Merge pull request #68 from Atheros1/master

start singleAPIThread only when apienabled = true