added templates and static dirs