some monarch api/scigraph refactoring