updated API for AJ