reorder env before vec.
remove empty file and func headers.