untested code - to make gates on version branches work