initialization & deinitialization sequence modified