bash compatibility and stuff like that