added support for resolutions