modify initializing process of AWS class.