nearly ready for the output template