1) things work more smoothly if the env file has an extra empty line at the end and no empty lines in the middle
2) added an additional configurable variable