revise the sample script
add cleanup in spec