call parser from main