needs review of define-macros
digest module finished