make refresh rate configurable