add setNetValue method and various fixes