added support for different variants of the exam environment