Handle empty opts
Add some optional logging
Basedir instead of root, gardening