a more generic run script