add pwd function
re factory add file operation interface