added new functions to Bashlib