fix bugs & add getEmail methods