working around bash v4 errors