adds static function to save component config