[WIP] use in memory state