fixes to update stdout/err and colors. Fixes #1 and #2