before add auth