added multi-monitor support