attempt port of goon process scheduler.

Still WIP