refactor read_dsl
add sort class templates
add display classes templates