add threadpool/statehandler api to frontend