i have an idea how to fix it so you need a redpower sorting machine and a gate and power and some red alloy wire and maybve something else
so what you do is you set an sorting machine between the iron chest and the enderchest on the only work on redstone mode put 10 of the item you want in...