lib: bc compatibility