move repo to thunks