code size on mobile, minor fixes