support for screen width calculation; fixes