added createServerMethod