applogin added new functions