bugfix for new auth