fix code to make call to server - pulled down from NOAH as well