added some more functionality to debug.getinfo