common bash stuff