added getCurrentViewport debug call