added exposeMethod feature