fixed some registration stuff