add generate setting script