added multiple password support to rest client