sometimes it appears "cannot read properly 'resolution' of undefined" but not always just sometimes dunno why