make verifyLayoutValid() work?