cleanup of find_dsr_command()