added model logic and selfdestruct task