updated authentication and stuff