this really requires bash, not sh