add ap-in support