parse from main