more code and authentication