fixed an issue with api output, tightened up urls for api