use '/' for location instead of hardcoding localhost