complete nyaBsOption directive but has bugs