move oidinfo struct  to lib