made commod recipe ctx code a bit cleaner