auth and cleaning