Add environment independency for splitter
Add debug option