fix - get platform in runtime