improved custom scripts (preprocessor: dataType = {nodes, edges, labels})