use block string for beforeScript, afterScript