added SysOpEnvironment and some bugfix
Bugfixes, made to work with SysOpEnvironment