moved specification of ES stuff to resources