add additional version check
switch to ruby2.0 hash style definition and add version check