add auth and java