debugging trade res