added auth and added warnings