added modules for detection and correction of local shifts