add most of AE api, uncomment code for AE charging