add min sub table as env_var