add env check before start