implemented mining command