sir, sio rewritten, command line and inside trading too