add a list append function to functions.sh