append mask info to command.