closes #343