added setupTwig method