another attempt at fixing bash woes