fixing path related issues with graph generator