fixed install and tree cleanup