updated maintanence script