added file path reduction and is_an_bn