range and mode encoders added to 777