added some informal validation logic
Merge remote-tracking branch 'origin/master'