better scaling support