add options to reload function

if cwd is include in options, reload will not work