try catch network operations