use eval-when to make utilities available for define-constant
refactor fen utilities a bit