support scope parameter from loginAsync method
minor
removed all warnings