ideas on making handlers (decode/link) simpler and more functional