move APA2CTL to common