constants for errors, extract command type from destination