added support for libgc