in-memory version for a more transparent prototype