add bf.check for param validation