added missing imports and added app deletion support