made ES_PORT optional