library of some common functions for output wrapping and for remote resource availability waiting in shells