added front gate hack