simpler API
avoid double decode