some checks on inputs to btf fn