add command-line option for swap interval