switching repo to in-memory