started amoeba, got example working, changes masterloop to be callable by amoeba