[api] update api to access default library