a few changes for auth on andorid L