added encoding flags