added option for delete on instantiate