add platform init in init functions