Added possibility manual setting sapi for the debug