add platform class hook