added version check to avoid unnecessay reloading in dev mode