add rename (have some bug,still trying), and pre-load dir