Removed minelib from event handlers