cleanup in zimlib flags