new functions for sync and get file list