marked obsolete lib2 code