added support for multiple monitors