add attr and fix global settings script