added better logging to mine