start of converting to typical mnesia