added option to read from ENV