change list parsing to shell compatible