fix main + update doc