added support for online classes