more medea -> medealib refactoring.