bugfixed: -l and -b bug