log ore discoveries, refactor a lot of the api functions