-remodify code to list data directory