improve edit parser