add path check to code reloader