fixing typescript build errors