chunk now read from the environment