unify bash scripts