fixed registration wait methods
Merge pull request #28 from olegshegula/olegsbranch

fixed registration wait methods