tidy up bash stuff