added new bash functions