make function for unwrapping swagger Lists
remove use of shell from swagger