add relationship for the stateprovider