more work on templated mine layout...mostly there I think?