fixes #2535 (dublicate apphook namespaces)

fixes #2535