Semi working with errros + mail