finish script helpers