implemented QL limits (issue #4)