added platform check in checkupdates function