added some registration stuffs