fork of mempo - deterministic kernel