improve platform recognition