add ptam support