example: prevent script from running in parallel to avoid races