fixing rollback and restart scripts