rename fn to method in server.method(). Closes #2128