Adding support for environments
use the correct config var
add read command