start to create better peon control code