basic working version of get-names