some docs about what getnames does and how to use it would be appreciated by future me