turned rsense API into a singleton like the old rapi