yeah something like that sounds great, it seems like it would cover all the cases. like a switch statement though, would it have a default case? just in case for whatever reason the string is not mapped, or in that case would it just not call the function, and we get a warning in console?