counter for remote server
fix #4