better platform detect