attached an env to the user-defined procedures