add thread for using api connect to application server backend