fix env check
add minimized version