Make proxy classes env dependent