updated to include support for posting historical datapoints to a datastream