apply-with-egs