#9 bug fix and add new net func