cleanup filepath&data