starting reorganization of bash scripts