adding error handling for "multi" command