bash compatibility improved