complete rewrite of the storage engine and the interface