removed back referance to environment inside bmachine