patching to add arm support