refactor optional boolean attr extraction
formatting
implemented gather, output not possible at this time