seperate bash job into several steps