add net dirrent and codes