bash functions to make life a little easier