added new class instance to try to fix mem leak