refactoring registration

Signed-off-by: RedChrome <redchrome@gmx.de>