adding reauth and logging
adding a wrapper for liverail