some basic stuff still a work in progress need to get mailer working properly