added debug messages for #475