implemented portconfig for state provider