this would be nice as a dictionary of functions, which are then just dispatched based on the parameters sent to the function. footnote @richafrank