Removing hardcoded localhost paths