add debug code for pre release testing