General liberation operation moved to import as only needed there