wrap the logic in .getQAStats.env function for getQAStats method