auth implemented
minor cleanup