enhancements and modification of functions to deal with uploaded lists