add "runfile" option and test for bug #1