uncomment script register, change permission