change 'missing' to 'new'
add debug message on socket error
correctly set and handle modification times