added mineboxfactory for nicer dependency injection