copy n paste some expression parsing code