allow definition of PHEASEL_ENVIRONMENT via environment variable
refactored placeholder handling (preparing iterator)