added in additional debugging code