flagplus: Rename API
Rename type to handle errors