compatibility with old bash