replace print() with debug()
re-order debug() and error() calls in cli.run
new command: configure_libraries