add net api and multi thread