add req to emptyRes
fix scriptPath for windows paths