sopcast bash functions