adding special handler for the restarting