added check for required variables in check_configure