add gate orientation to scanning/templates/rules