add check to pass not more than MAX_ENVC variables