move schema output into separate module