Adding env support for getcourse