add delete file and adjust new functions