make command confirmation more generic