delete unused files and add a function to update scripting class based on channel settings