add gate to env