removing existing prepand commands, append commands before updating