added memory to env with default val. 512