add open tweak, stolen from @vincentbernat