what i do is put all the stuff that's necessary at max, and all the other stuff at zero. like if u have 1000000 machine parts and not enough stone, just turn off the machine part factories and set the priority to zero, and stone priority at max. or if there's a task to complete or whatever.
There is a Mining Research Center, you can unlock it by having 15 stone mines, and 3 rock teleporters. I don't exactly know how to use it, so go on the kongregate wiki to find out.