fixing problems with the mine open call