patching some files manually