lazy registration done.
TODO: processing repetitions, tests