add memdev backend infrastructure