use command line params in library