double registration check
Merge pull request #15 from dotch/master

double registration check