added logging, closes #63