fix up registration