add basic framework and line categorization