bootstrap: check environment