how to manage a mining operation