added dev env check