added -l/--library option