reference 'oculus2' repo that I based most of the code on