revert library by runtime type