better handling of out of range values for multilevel command