refactor get infos