started BlockMachine, fixed some weird code