minor modifications to run scripts