getinfo method