added platform compatibility