begin refactoring selected ranges
work on selections and improve line drawing speed
re-enable json highlighting