changed the public api set/get methods to overloaded functions