added a bit more functionality to debug.getinfo