added support for classes passed through URL parameters