a simple simulator for yarn framework