fixed swap, added a spt hash init in process