replace email to key, parse params correctly