minor changes to help debug