added  support to nginx class