Bug fix and minor improvement:
- fixed attribute error of `media.caption`
- output logs to stderr