made registration configurable.