temp fix for mono support
make support for changing environments and agents