added platform mapping logic