updated bash functions for 8b