added -l protection functionality