added proname to table
fixed possible continuous loop
saving array of action for mail