further updates to match passport api
all but one known bugs eliminated