add count new files function
change communication protocol
add comment