single maintenance script with extended functionality