move registration to xml