Refactoring and downtimes API

ulib?