integrated crack + motion code