updated main entry-point with imports and templates