[bash] various changes