bugFix for p and n options