add platform detect feature