move registry to the end