output logs in stderr; close #21