common_functs: moved get_input funct to common (from choose_functs)