mordenlize the run script, not fully tested.