fixes #1
changed messages to output to stderr