fixed frame eviction, load segment in process
merged with yan's