added validation...sort of - for snippets anyway