[code] More work on the net engine, fixed some issues