implemented the majority of the OGraph signature