get rid of hardcoded reference to localhost