generator registration