get rid of hardcoded localhost