implement basic static call graph