sane logging, closes #1