added pathname as require