helpful bash functions