added (first working) upload and consume code