implement end section
simplify tokenizer
rename resource to source