gopro code sniffed by @evilwombat