net module api change, and some bug fix