Add sim and debug arg support

Add sim and debug arg support