adding the possibility to perform task at the begining and the end of a system update