add the possibility to load the api in debug mode