modify bash_ref