a workaround for a method dispatch issue