added auth and another some changes