removed hardcoded localhost