adding support for linking to class