improve handling of sub graphs, allow page subs