more environment problems; limit resource exhaustion; fix incorrect