fixes outputs; fixes #39;