fixing bug in new users and adding restart script