updated command to use environment rather than hard-coded