initial commit
fix the case when there is no response from the server
add comments