added command-line option to disable popup blocking