vprintf was being written to stderr instead of stdout