remove dependency on bash