closes #306