use options.path instead of options.pathname