more work on mogen templates