replace command parser

Replace command parser with mains untill all bugs are tested and fixed