added -L and -l commandline arguments