closes #42, logging revamped