added validate function
udpated package version