getUnitByUnitCode, more exporting, progress with shell