more refactoring
new script to get graph annotation