added prestart and postinstall scripts