improve build; add destroy functionality