fix the status script