minor changed made to error handling with net code.