wrap env checks in check for codespeed