added authentication and associations