working on auth and init