applics improvements and sendmail