fix register, fix language change and add build to gitignore