added read function, adding network info outputs