following stackoverflow attempt to resolve object doesn't support this property or method on getContext