creating a state for using custom repositories