platform init reorg

separate platform init in a file to clarify organization