add method pathname to Frontgate
add method remote to Frontgate