updated for multiple domains
updated issue in windows encoder
updated
updating test logic - need to complete and add all back in