added parsing of diagrams to get url into model