add some debug traces to verify height, width