fixed authentication on stacks