added support for loading libs from command line arguments