closes #774