cleaning up bash scripts