bugfix select_outputs + example