add error-dest support.