collection of bash functions to deal with network