working on registration stuff