removed dependency on bash