fix registry and add .reg file