punt on some error handling in match function