properly error on unknow flags
clean up output