more flexible run script