bash rework