debug index/logic interface test code