fixing compile issues with MethodCommand