bring validate from github gists