added utility bash functions