add support for other output types; closes #2