get swagger to be properly initialized