* refactor get_recipe() to handle both the maxvals and non-maxvals cases