improved encoding options