refactor container info function, avoid assuming maas