fix adapter and script variable files