code exchange with mike0so for arathos