before/after script modifications