Refactoring and downtimes API

it's totally useless here