add options to reload function

if `cwd` is included in option, reload will not work