changed network functions to accept options dictionary instead of list of arguments