v2: in the process of optimizing mnesia and stuff..