updates based on review and addition of authentication