restructure
Process creation rewritten