a simpler script for doing this