updated to use apiKey & email