add support for code rather than stderr too many programs dont use it properly