added in-app registration support
some mystery change