aded the draft templating and routing