adding some temporary debugging code