corrected  helper so it doesnt fail if the client is not authenticated