fix the strict parameter logic and docs