cleanup the mess in hunk and put a front-end simulator