added authentication and verification. not working.