before_and_after script