parse and execute in a more imperetive manner