added initial registration implementation (WIP)