added functions to select-auto