working on dir traversing and template rendering