slight improvement to run script